'''
Created on 18/11/2011

@author: Byron
'''
from tkinter import *

class LogPlayer:

    def __init__(self, pContainer, pPlayer, pPosY):
        #widgets
        labelJugador1 = Label(pContainer, text=pPlayer, font=("arial","12"), fg = "#000b98", width= 16, height = 1)
        labelJugador1.place(x = 5, y = pPosY)
        self._Info = Text(pContainer, height=10, width=20, font = ("arial","9"))
        self._Info.config(state=DISABLED)
        self._Info.place(x = 5, y = pPosY+30)
            
        
    def addInfo(self, pText):
        self._Info.config(state=NORMAL)
        self._Info.insert(END, pText+"\n") 
        self._Info.config(state=DISABLED)